/**
 * 
 */
package org.scohen.juploadr.app.state;

import java.util.List;
import java.util.Set;

import org.scohen.juploadr.app.tags.Tag;
import org.scohen.juploadr.app.tags.TagParser;

public class ImageStateDescriptor {
    private int rank;
    private Set<Tag> tags;
    private String path;
    private boolean publiclyVisible;
    private boolean familyViewable;
    private boolean friendViewable;
    private int rotation;
    private String title;
    private String description;
    private int state;
    private int sequence;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isFamilyViewable() {
        return familyViewable;
    }

    public void setFamilyViewable(boolean familyViewable) {
        this.familyViewable = familyViewable;
    }

    public boolean isFriendViewable() {
        return friendViewable;
    }

    public void setFriendViewable(boolean friendViewable) {
        this.friendViewable = friendViewable;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isPubliclyVisible() {
        return publiclyVisible;
    }

    public void setPubliclyVisible(boolean publiclyVisible) {
        this.publiclyVisible = publiclyVisible;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getRotation() {
        return rotation;
    }

    public void setRotation(int rotation) {
        this.rotation = rotation;
    }

    public Set<Tag> getTags() {
        return tags;
    }

    public void setTags(Set<Tag> tags) {
        this.tags = tags;
    }

    public void setStringTags(String tags) {
        this.tags = TagParser.parse(tags);
    }

    public String getStringTags() {
        return TagParser.toInputString(tags);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

}